package PTA2.ti14;

import java.util.Scanner;

/**
 * @author Lenovo
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n= scanner.nextInt();
        int OddCount=0;
        int EvenCount=0;
        for (int i=1;i<=n;i++){
            if(i%3==0){
                if(i%2==0){
                    EvenCount++;
                }
                else {
                    OddCount++;
                }
            }
        }
        System.out.println(OddCount+" ,"+EvenCount);
        scanner.close();
    }
}
